<?php
/*
	用户端后台菜单
*/
defined('BY_JYA') or exit('error');
$menus=array(
	array('title'=>'商户概况','fa'=>'icon-dianpu','url'=>'jy_supplier/manage.index/','child'=>array(
		array('title'=>'商户概况','child'=>array(
			array('url'=>'jy_supplier/manage.index/','title'=>'商户概况'),
			array('url'=>'jy_supplier/manage.yajin_log/list/','title'=>'押金记录'),
		)),
	)),
	array('title'=>'商户商品','fa'=>'icon-cart1','url'=>'jy_supplier/manage.good_list//status=1','child'=>array(
		array('title'=>'普通商品','child'=>array(
			array('url'=>'jy_supplier/manage.good_list//status=1','title'=>'出售中'),
			array('url'=>'jy_supplier/manage.good_list//status=2','title'=>'已售罄'),
			array('url'=>'jy_supplier/manage.good_list//status=0','title'=>'仓库中'),
			array('url'=>'jy_supplier/manage.good_list//status=3','title'=>'回收站'),
			array('url'=>'jy_supplier/manage.good_label/','title'=>'标签管理'),
		)),
		array('title'=>'云仓商品','child'=>array(
			array('url'=>'jy_supplier/manage.yungoods/','title'=>'云仓商品'),
		)),
	)),
	array('title'=>'送货管理','fa'=>'icon-form','url'=>'jy_supplier/manage.pcin_log/','child'=>array(
		array('title'=>'送货','child'=>array(
			array('url'=>'jy_supplier/manage.pcin_log/','title'=>'配送单'),
			array('url'=>'jy_supplier/manage.pcgoodslog/','title'=>'入库记录'),
			array('url'=>'jy_supplier/manage.psetting/','title'=>'打印机接口参数'),
			array('url'=>'jy_supplier/manage.print/','title'=>'打印机管理'),
			array('url'=>'jy_supplier/manage.printer/','title'=>'打印任务管理'),
		)),
	)),
	array('title'=>'商户订单','fa'=>'icon-form','url'=>'jy_supplier/manage.order_list//all=1','child'=>array(
		array('title'=>'订单','child'=>array(
			array('url'=>'jy_supplier/manage.order_list//all=1','title'=>'全部订单'),
			array('url'=>'jy_supplier/manage.order_list//status=1','title'=>'待发货'),
			array('url'=>'jy_supplier/manage.order_list//status=2','title'=>'待收货'),
			array('url'=>'jy_supplier/manage.order_list//status=0','title'=>'待付款'),
			array('url'=>'jy_supplier/manage.order_list//status=3','title'=>'已完成'),
			array('url'=>'jy_supplier/manage.order_list//status=4','title'=>'已关闭'),
			array('url'=>'jy_supplier/manage.order_list//status=5','title'=>'退款申请'),
			array('url'=>'jy_supplier/manage.order_list//status=6','title'=>'退款完成'),
			array('url'=>'jy_supplier/manage.order_export/','title'=>'自定义导出'),
			//array('url'=>'jy_supplier/manage.order_batchsend/','title'=>'批量发货'),
		)),
		array('title'=>'云仓订单','child'=>array(
			array('url'=>'jy_supplier/manage.order_yunlist/','title'=>'云仓订单'),
			array('url'=>'jy_supplier/manage.order_yuntotalset/','title'=>'云仓库存'),
			array('url'=>'jy_supplier/manage.order_cailist/','title'=>'云仓采购'),
		)),
	)),
	array('title'=>'商户结算','fa'=>'icon-licai','url'=>'jy_supplier/manage.ordergoods_list/','child'=>array(
		array('title'=>'结算','child'=>array(
			array('url'=>'jy_supplier/manage.ordergoods_list/','title'=>'待结算订单'),
			array('url'=>'jy_supplier/manage.apply_list/status1','title'=>'待审核申请'),
			array('url'=>'jy_supplier/manage.apply_list/status2','title'=>'待结算申请'),
			array('url'=>'jy_supplier/manage.apply_list/status3','title'=>'已结算申请'),
			array('url'=>'jy_supplier/manage.apply_list/status4','title'=>'无效申请'),
			array('url'=>'jy_supplier/manage.apply_add/','title'=>'申请提现'),
		)),
	)),
	array('title'=>'商户设置','fa'=>'icon-shezhi','url'=>'jy_supplier/manage.shop/','child'=>array(
		array('title'=>'设置','child'=>array(
			array('url'=>'jy_supplier/manage.shop/','title'=>'基础设置'),
		)),
		
	)),
);
if(!$this->setting['is_yuncang']){
	unset($menus[1]['child'][1]);
	unset($menus[3]['child'][1]);
}
return $menus;
